var React = require("react-native");
var Dimensions = require("Dimensions");

var {
    PixelRatio,
    // ActivityIndicatorIOS,
} = React;


module.exports = {
    //单位像素
    // pixel: 1 / PixelRatio.get(),
    //屏幕尺寸
    size: {
        width: Dimensions.get('window').width,
        height: Dimensions.get('window').height
    },

    log:function (obj){
        var description = "";
        for(var i in obj){
            var property=obj[i];
            description+=i+" = "+property+"\n";
        }
        alert(description);
    },
// //loading 效果
// loading:<ActivityIndicatorIOS color="#3E00EF" style = {{marginTop:40,marginLeft:Dimension.get("window").width /2 - 10}}  />


};
